package com.ljx.itbbs.server.article.domain.vo.resp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-03-24  14:26
 */
@Data
public class ArticleInfoResp {

    @ApiModelProperty("文章ID")
    private Long id;

    @ApiModelProperty("用户ID")
    private Long uid;

    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("封面")
    private String cover;

    @ApiModelProperty("浏览量")
    private Integer viewsNum;

    @ApiModelProperty("点赞量")
    private Integer likeNum;

    @ApiModelProperty("评论量")
    private Integer commentNum;

    @ApiModelProperty("收藏量")
    private Integer collectNum;

    @ApiModelProperty("文章板块")
    private Long plateId;

    @ApiModelProperty("文章分类")
    private Long categoryId;

    @ApiModelProperty("文章标签")
    private List<String> tags;

    @ApiModelProperty("是否包含资源")
    private Integer containRes;

    @ApiModelProperty("资源")
    private List<ResourcesResp> resources;

    @ApiModelProperty("是否置顶")
    private Integer isTop;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("状态")
    private Integer status;
}
